
<%--
    Document   : oEstrategico
    Created on : 10/04/2010, 03:05:56 PM
    Author     : LAPTOP01
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://struts.apache.org/tags-bean"  prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="/tags/c" prefix="c"%>
<%@ include file="seguridad.jsp" %>
<script src="scripts/ajax.js" language="JavaScript"></script>
<script src="js/calendar.js" language="javascript"></script>
<script src="js/calendar-es.js" language="javascript"></script>
<script src="js/calendar-setup.js" language="javascript"></script>


<script type="text/javascript">
    function autoCompletarDiv(metodo,url,cadena,async,idDiv)
        {
            if( window.XMLHttpRequest )
                ajax = new XMLHttpRequest();
            else
                ajax = new ActiveXObject("Microsoft.XMLHTTP");
            ELEMENT_DIV = idDiv;
            ajax.onreadystatechange = funcionCallbackVerDiv;
            ajax.open( metodo, url, async);
            ajax.send(cadena);
        }
    function funcionCallbackVerDiv()
        {
            if( ajax.readyState == 4 )
            {
                if( ajax.status == 200 )
                {
                    document.getElementById(ELEMENT_DIV).innerHTML = ajax.responseText;
                }
            }
        }

        function editar(pk){


var form = document.getElementById("FichaForm");
form.action="Ficha.do?dispatch=editarFichaInfraestructuraAdm&pk="+pk;
form.method="post";
form.submit();

}


    function eliminar(pk){

    /*var tipoOper=3;
    var form = document.getElementById("FichaForm");
    form.action="Ficha.do?dispatch=grabareditFichaSatisfaccion&pk="+pk+"&tipoOper="+tipoOper;
    form.method="post";
    form.submit();*/
        //por implementar

}


</script>

<html>
    <script LANGUAGE="JavaScript">
    </script>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link type="text/css" rel="stylesheet" href="lib/css/Style_Font_Text.css" >
        <link type="text/css" rel="stylesheet" href="lib/css/Style_PageTable.css" >
        <link type="text/css" rel="stylesheet" href="lib/css/Style_Index.css" >
        <link rel="stylesheet" type="text/css" media="all" href="lib/css/calendar-win2k-cold-1.css" title="win2k-cold-1" />

        



        <title>JSP Page</title>
    </head>

    <body>
        <center>
            <h1 class="substylo">Edicion Fichas de Infraestructuras Deportivas Administrativas</h1>
        </center>
        <div style="overflow: auto; width: 700px; height: 400px">
            <html:form action="Ficha.do?dispatch=listarFichaSatisfaccion" styleId="FichaForm">
                
                    <logic:present name="FichaForm" property="listaInfrAdm">
                        <%int i=1;%>
                        <div id="divTabla">
                                    <table border="0" align="center" cellspacing="0" style="width: 600px" >
                                        <tr class="even" align="center">
                                            <th class="textoTR">#</th>
                                            <th class="textoTR">Anio</th>
                                            <th class="textoTR">Departamento</th>
                                            <th class="textoTR">Provincia</th>
                                            <th class="textoTR">Distrito</th>
                                            <th class="textoTR">Editar</th>
                                            <th class="textoTR">Eliminar</th>
                                        </tr>
                                         <logic:iterate name="FichaForm" property="listaInfrAdm" id="lista">
                                            <tr align="center">
                                                <td width="10%" align="center">
                                                    <%=i++%>
                                                </td>
                                                <td align="center" style="width:1500px;text-align: left">
                                                    <bean:write name="lista" property="NUM_ANIO"/>
                                                </td>
                                                <td align="center" style="width:1500px;text-align: left">
                                                    <bean:write name="lista" property="TX_NOMDPTO"/>
                                                </td>
                                                <td align="center" style="width:1500px;text-align: left">
                                                    <bean:write name="lista" property="TX_NOMPRV"/>
                                                </td>
                                                <td align="center" style="width:1500px;text-align: left">
                                                    <bean:write name="lista" property="TX_NOMDIST"/>
                                                </td>
                                                <td width="10%" align="center">

                                                    <img style="cursor:pointer" title="Editar" alt="Editar" border=0  src="images/b_edit.png"
                                                         onclick="editar('<c:out value="${lista.NUM_CODINFADMIN_PK}"/>');"/>

                                                </td>

                                                <td width="10%" align="center">

                                                    <img style="cursor:pointer" title="Eliminar" title="Eliminar" alt="Eliminar" border=0  src="images/b_drop.png" onclick="eliminar('<c:out value="${lista.NUM_CODINFADMIN_PK}"/>');">
                                                </td>


                                            </tr>
                                        </logic:iterate>
                                    </table>
                                </div>

                    </logic:present>
                    
            
        


            </html:form>
       </div>
    </body>
</html>